package com.ruoyi.active.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 信息发布对象 cf_activity
 * 
 * @author zhangbiao
 * @date 2024-06-04
 */
public class CfActivity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long activityId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 发布 （门店id 外键）  */
    @Excel(name = "发布 ", readConverterExp = "门=店id,外=键")
    private Long cfShopId;

    /** 发布内容 */
    @Excel(name = "发布内容")
    private String content;

    /** 审核状态（数字字典 待审核、审核通过、审核不通过） */
    @Excel(name = "审核状态", readConverterExp = "数=字字典,待=审核、审核通过、审核不通过")
    private Long type;

    /** 审核时间 */
    private String auditTime;

    /** 审核说明 */
    private String activityExplain;

    /** 活动状态（数字字典）（已上架、未上架） */
    private Long state;

    public void setActivityId(Long activityId)
    {
        this.activityId = activityId;
    }

    public Long getActivityId()
    {
        return activityId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setCfShopId(Long cfShopId) 
    {
        this.cfShopId = cfShopId;
    }

    public Long getCfShopId() 
    {
        return cfShopId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setAuditTime(String auditTime)
    {
        this.auditTime = auditTime;
    }

    public String getAuditTime()
    {
        return auditTime;
    }
    public void setActivityExplain(String activityExplain)
    {
        this.activityExplain = activityExplain;
    }

    public String getActivityExplain()
    {
        return activityExplain;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }

    private List<CfActivityImage> activityImageList;

    public List<CfActivityImage> getActivityImageList() {
        return activityImageList;
    }

    public void setActivityImageList(List<CfActivityImage> activityImageList) {
        this.activityImageList = activityImageList;
    }

    private String principalName;

    public String getPrincipalName() {
        return principalName;
    }

    public void setPrincipalName(String principalName) {
        this.principalName = principalName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("activityId", getActivityId())
            .append("title", getTitle())
            .append("cfShopId", getCfShopId())
            .append("content", getContent())
            .append("createTime", getCreateTime())
            .append("type", getType())
            .append("auditTime", getAuditTime())
            .append("activityExplain", getActivityExplain())
            .append("state", getState())
            .append("activityImageList",getActivityImageList())
            .append("principalName",getPrincipalName())
            .toString();
    }
}
